package com.six.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName("agreement_detail")
public class AgreementDetail {

    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    //原料id
    private Long materialId;

    //原产地,默认为供应商所在城市
    private String origin;

    //数量
    private Integer number;

    //到货数
    private Integer getNumber=0;

    //单价
    private Double price;

    //金额
    private Double money;

    //计划到货日期
    private Date getDate;

    //合同id
    private Long agreementId;
}
